import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:my_app/app/routes/pages.dart';
import 'package:my_app/app/core/theme/app_colors.dart';
import 'package:my_app/app/widgets/cell/custom_tile_widget.dart';

/// template_page.dart
///
/// Created by fuchuanwei on Tue Feb 21 2023.
///
/// Description: 模板页面
///
class TemplatePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('模板')),
      body: ListView(
        children: [
          CustomTileWidget(
            title: '微光加载效果',
            subTitle: "页面正在加载中的效果",
            assetImageName: "assets/images/shimmer.png",
            onTap: () => Get.toNamed(Routes.SHIMMER),
          ),
          Divider(
            height: 2,
            color: dividerColor,
            thickness: 0.5,
          ),
          CustomTileWidget(
            title: '滚动视差效果',
            subTitle: "列表中存在图像时的滚动视差效果",
            assetImageName: "assets/images/parallax.png",
            onTap: () => Get.toNamed(Routes.PARALLAX),
          ),
          Divider(
            height: 2,
            color: dividerColor,
            thickness: 0.5,
          ),
          CustomTileWidget(
            title: '交错效果的侧边栏菜单',
            subTitle: "错开动画的侧边栏菜单",
            assetImageName: "assets/images/menu.png",
            onTap: () => Get.toNamed(Routes.STAGGERED_MENU),
          ),
        ],
      ),
    );
  }
}
